#include "thread.hpp"
#include <unistd.h>

using namespace threadModule;

void* routine()
{
    int count = 10;
    while (count--)
    {
        std::cout << "这是一个测试" << std::endl;
        sleep(1);
    }
}

void test()
{
    thread t1(routine);

    t1.start();

    t1.join();
}

int main()
{
    test();

    return 0;
}
